//
//  WBComposeViewController.swift
//  微博Demo
//
//  Created by 花化华 on 2016/11/27.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class WBComposeViewController: WBNavigationViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

    }
    
    /// 设置导航条
    override func setupNavigationBar() {
        
        // 设置导航条按钮
        navItem.leftBarButtonItem = UIBarButtonItem(title: "取消", style: .plain, target: self, action: #selector(popViewController))
        navItem.rightBarButtonItem = UIBarButtonItem(title: "发布", style: .plain, target: self, action: #selector(popViewController))
        
    }
    
    /// pop当前self
    @objc fileprivate func popViewController() {
        self.dismiss(animated: true, completion: {})
    }

}
